{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests\n",
    "from lxml import etree\n",
    "import time"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "当前请求的链接是： http://angelimg.spbeen.com/ang/10200/1\n",
      "当前请求的链接是： http://angelimg.spbeen.com/ang/10200/2\n",
      "当前请求的链接是： http://angelimg.spbeen.com/ang/10200/3\n",
      "当前请求的链接是： http://angelimg.spbeen.com/ang/10200/4\n",
      "当前请求的链接是： http://angelimg.spbeen.com/ang/10200/5\n",
      "当前请求的链接是： http://angelimg.spbeen.com/ang/10200/6\n",
      "当前请求的链接是： http://angelimg.spbeen.com/ang/10200/7\n",
      "当前请求的链接是： http://angelimg.spbeen.com/ang/10200/8\n",
      "当前请求的链接是： http://angelimg.spbeen.com/ang/10200/9\n",
      "当前请求的链接是： http://angelimg.spbeen.com/ang/10200/10\n",
      "当前列表的链接内容为： ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10']\n",
      "当前图片链接的列表内容为： ['http://image.angelimg.spbeen.com/00000mx00000/WFHX20XiomBDye2nguRi279596/kJf25S4UxYP5M4KYOOQp279596-rDZqGt.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/WFHX20XiomBDye2nguRi279596/gFCLZwYNhrbYGRYzCdFd279596-F8T14O.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/WFHX20XiomBDye2nguRi279596/29oFLJthDqrdiMB14cQP279596-PRsrPV.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/WFHX20XiomBDye2nguRi279596/KMdnhYZ1b0M0YPd1Zwts279596-Mj8L20.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/WFHX20XiomBDye2nguRi279596/UOh0cBkLmWJOZTCxQl8h279596-Aqj2cf.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/WFHX20XiomBDye2nguRi279596/kJf25S4UxYP5M4KYOOQp279596-rDZqGt.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/WFHX20XiomBDye2nguRi279596/gFCLZwYNhrbYGRYzCdFd279596-F8T14O.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/WFHX20XiomBDye2nguRi279596/29oFLJthDqrdiMB14cQP279596-PRsrPV.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/WFHX20XiomBDye2nguRi279596/KMdnhYZ1b0M0YPd1Zwts279596-Mj8L20.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/WFHX20XiomBDye2nguRi279596/UOh0cBkLmWJOZTCxQl8h279596-Aqj2cf.jpg']\n",
      "当前全部图片的列表内容为： ['http://image.angelimg.spbeen.com/00000mx00000/WFHX20XiomBDye2nguRi279596/kJf25S4UxYP5M4KYOOQp279596-rDZqGt.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/DJ1zxziVd9oMkyvmcK52306712/Tg6s6ufoQroGKdJbXyuM306712-UJMj75.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/uhq4g1b6p3eZjkqbxifu300600/BOgwSaLjFkWqSepRp9BJFJHwfH.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/J2lUSkQqNQVDBmVgSiM4307315/elAOFi9lWIBUMCn6SZWx2d1c10f8aec4df91b12ffa7a38e80068.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/QLOV9rFH8bb0ynTGvkcD54669/2ebl8SVUht0BKQsFZVsE54669-8ufnbZo.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/p0mOKDXXTe7wroBkCO11307393/Gdkjh9MpkWk288sKrmctc4fed19c6214750132e652544fdeefea.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/odtk0YQLa4a2aJxzPm1U300154/SwsPdhlzLklP8YI8pgzM300154-l8otLE.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/ZrQS2kOTWjpMnrfY4Rxs286946/k7heNgZWIylzqq317UsZ286946-tEsaZJ.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/iIncRgEFUbW6AEK25yf7274337/vs8uNSw8QPRSXDVHYPKi274337-2pVfFc.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/tAOGJHa50WeyjRR2toiW306730/pReNq8AipPnnifNr8gSg306730-VZ95AE.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/WQWHxGFTl52J2InoWcmB304241/PGGFDhv3mTxWqiAzudC8ZwSGBC.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/I1F63CK4dZMReNmH3iTa278398/SZPiNfG1pUvo9W8XsEb2278398-KGrDwk.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/JPqo0N9g6eqhwSFcc24f294148/GIIhzq0gSmk5nhATG40x294148-RZr7us.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/93U9ZS67M99wvy7KuTk1288314/O6sLDBjYuaSTkijwADRI288314-T5RrX1.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/Jwe1n8U84DPhuNDnzQRJ275699/p9hHcnF6JSMnis1wTxAZ275699-VARX3c.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/0sWfNtWXhpZnpg2OkQPv298030/jQTrBZuNWsdhb7FqG28DaXkNQx.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/0SDXiYwqJccnH9ssvG4J275311/Z0vZwS67KG2auykXCVXd275311-QutvjI.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/s8DnWnVJtbDDNeiTAhwH289710/GZb14lOv9d6A95XDSyzG289710-Hz5fVr.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/pAJFyjIsWHZasVHC5spm288416/iVOOvUa08Oedf8l3YKGP288416-GWbU01.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/WFHX20XiomBDye2nguRi279596/gFCLZwYNhrbYGRYzCdFd279596-F8T14O.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/EXbMonQenPaEmhQhC29l290279/7zxtgkT9xdnvfSdXnCx2290279-z97vuU.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/S3YVRq2jjjrFqvHlwLM5301253/pD5wxnx9g27plcszMIys301253-C8uSIf.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/91JTAU32gzGAGfpu9h5w291374/gKmXm6uINSmvKO1SzTpH291374-qs6BgR.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/wQtOkZfrWR5g7wiDO7zb306998/uPMT6DD2qSD7hmyy9Xi6306998-0AYhfU.jpg', '', 'http://image.angelimg.spbeen.com/00000mx00000/FA0uLXSyoP01KEFwiEdk300591/yvdmSoO8r5MSSBIqcTo5pWvxPe.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/lLHF9SLAEIzMJ740t5YH306250/CSi10Njk6IB9tNRtGVX8306250-VhfR8e.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/gSshz227lLgKKY1dkrFo294866/7cggxgxLVO5LM6sJy62zGJdnEm.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/ikrqhSC9FyNYRQyxbyk0275780/GXupYKxT1oLQfwPkYEhA275780-Ew8suR.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/pYCyOfjuP7IdAizfy75w295389/IrAIxRl827vWKsK926tl295389-cnHCIY.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/fvYNU21fDLFgVee9iunX281165/1pN6hVNSNXNDATBk7PQZ281165-ULBZc2.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/ZPYfkrDQJlFG4iVg6MdK283108/ml2Q6xlLfr7pv5g2Xd9S283108-Aou8Cq.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/V5C8U6W1FxR66aEXkFFX282742/a1VbXStt5nqHWqvyRr7G282742-Rb2zbi.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/VjtPYojyv8pFPqFioVPr279676/7fOagluZ3CPzmMSqmcw9279676-0C4WIU.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/HtQQIS8SEZc8KPWmbnIT282996/NrZlIJA0WCfoinuz5WX0282996-AJU1mm.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/yojYuOCy3DtmhlThaBos301899/icldfoFnwuymZN4TepTz301899-MWaaNZ.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/BjkHS5nPAqtI3EndPU63279828/rG9XNKazUel0ezJVa7s9279828-kIiap8.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/6U6kesPZO0b1glregJVJ301511/jmF4LLumKNpOZkfMQcvQD11xin.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/WFHX20XiomBDye2nguRi279596/29oFLJthDqrdiMB14cQP279596-PRsrPV.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/pfi2cFIAjv5iinpkoF1V307152/tum7cXXzKGpjgnH6Xwwp307152-05hnQr.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/9gwmbF89vFMxGXzZ7Gvk294918/jiTK3KScyR075T6ZIECobbC3ch.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/oVcHm6Sa01yGaRvJPe8s274673/qA7x4CapOdOMKL38aWYf274673-b8PhDQ.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/pJPyMNe8l0MKJqjvOJCQ298133/TB3ceTFJM429zr5lxOqT298133-ksE3TF.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/TtvC6t3KtW3zVKmTKiAy295695/0jCxjEirgdfae4CZYVs6295695-SmvFXt.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/8VEHTmFDX2v2am1njBiR278641/QgxIHCUowAXZbhkgjq25278641-31Mhfj.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/duDAzNO0OPILxgIkthhd304136/BqZdNwDIGd9FWfDlssxB304136-4AwT0h.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/xKJfN6MJv5RxbyrhK6RL280493/jX1VGAOHYkdgMb9anLXU280493-4cOofR.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/jTfVLRiAfcH9gZNWBHOM288507/wnabCAHvsL9aOjq1Wxpl288507-RwaUfa.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/bJLacToY49xdqcJPmKyw293805/6RSI4bwvHIHPAkS5XmB3293805-Yte5MY.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/Ey27Li5G0tQchLLaZz9a302333/y0BcRQnd8qyucBTprVPSiG7LfX.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/bv87758reqdQGkAibgnb283301/ge0dyjIbayZxdIjvSCuw283301-TbHrFz.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/Cn8cIYpsJS3K4PWTuqR5298156/XQ4Gg8x6BPhql55gcuqh8uktcU.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/FlEHv9OcwWbqub7twADd279281/IvN4bKaorjTgEYFexHhE279281-uUyDeX.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/rzqRgBlyvHT9qgLSjJqu307539/bshrOjYwX2ANNs4brjS6ea7ebc80bd2f991a3d335f293e2dab67.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/IefdBuK33OCsdmrunuek283928/C52wPonxHXBk5ikPYoFu283928-gIHTCr.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/ny3aNyrok5wNRz33dDSW278915/viwPgmmg40z7oJwSca4K278915-m2MOMq.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/ufoOw8MM67svJ5RvKi2q288115/xifA6Bw2z6dzUGMW85yA288115-u07MqI.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/WFHX20XiomBDye2nguRi279596/KMdnhYZ1b0M0YPd1Zwts279596-Mj8L20.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/FjSy9oqKfWEfvfclZugo298872/UPagR9uKWL3a1hyOe13j298872-tyDfqV.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/DOhF5nH0kuma0VZfkuIN291999/OwpeEDxoHs1IaOpgSIxj291999-bB8b3Z.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/Uhr86iHYGuCP6wfFyfSJ307920/l6Uy587xvQOjjpz0tOLyea13ea38383d02934d27c5a4360f9b71.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/q4wVvNoy19QSRcM2yOrR279691/vClkSGFW7IoyiDUG3m3L279691-1s9KJU.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/U57UCqveUk8ywtpGmqVA292631/dJkW6FcblISyTJwz4Q7I292631-EGeU5U.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/GgHgxG7bdzvjQrNv3Yhb288509/nUp03MC26fiJ4SGD6Wpw288509-zmsxqM.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/kGgIERiYm4ufewZ7Wcrn283733/SP9yaYCAuXztSuEptjaz283733-u8i4kW.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/nslsyFBDyjQMfkd4TAVB280867/SJK0rMTXw7zkcOJ8MQ43280867-uWsVpD.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/xfRVTt8ZDBq1Lkx1qrMb304150/zyyVkrQmiVFZaSeSymqADQWwTq.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/QthN1WqMk5gV6TGsALUq298000/wc3NQ5JP2ubjsDRx20sW298000-tvO9tv.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/FRxs8Y6XPLlPUBw3kOQ5307108/U5xiL3vuC2tJy4BRrErm307108-6uQEay.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/HnBRypyqTApUBAfM3cN1282414/fXjlTXDP5xRWFcBaljZM282414-k0f154.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/BGZ7aQN9hPQpmQGD9jBl300593/wZvSCGWnPDCMXha1xoGlhpfexW.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/XrGhk8Kcx3FTpeqj7Sw2289965/Gjhg2EHoxVl8vrm4Qqyi289965-jXGUoX.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/NoortB1GDuixlkIAciZa301095/5Gvj2GX0RYCh0arSblIQ301095-W42MDw.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/SDPbccTSUddmad7x756c307592/PNDTB3YWywVyieKSC5Ded563bb754c1a99ea1f77c45f47b4ca18.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/dyQ26pOU3Z8f9Zy1nppi299768/1nID39UWmAOReU1SvRtr299768-IWpUIi.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/PnT2a46c7T4eF4TJND1H294916/fvK3UKzXdpEVPAshjoBJ294916-2kLtNu.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/WFHX20XiomBDye2nguRi279596/UOh0cBkLmWJOZTCxQl8h279596-Aqj2cf.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/BrWo5FflI2usYfyNiW3a276006/LzQdZCGleaB2QtR284w1276006-3g6wYH.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/RnOYdbdlDGUTGZV36R6g288549/YbdGc3IlXL1cLCafmsjD288549-r06n56.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/CRa1zqR5fzV5kcm2QrWv273443/6BTM8RCgQ8A9RKauoMjS273443-XNG1H2.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/MmoUwTbqKA6FUMYhRuct299232/tQNptIZKHVS1DeVxfNWs299232-HZm2u3.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/1j8EGhArgxvXP4Rt5xPI295151/WpkDlHxRcFd4b2cnQugZ0j7zXN.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/5sQKz2W9ZkIBuWnNrqji281288/trVbB9DstAfyfIIFpztz281288-ghW8rm.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/ufnc7UlEMrxivWWZGn7K273496/D3pzhtSr1xbl6dv08z7J273496-6OVrSk.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/NxXag7WfwlTBTKmVBotZ279101/T8oL1RVtDMLmnFwHL96y279101-URDW2g.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/gGcgIJYlrqP77ct46z4C285233/s5qfASj0PgTNwnHQJCRz27-285233-uONydV.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/kEGW0WYW5Ce8YFKVu1tA280468/8Ej2BLs0iQwfJikhn2TA280468-VCpJgK.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/Sj4PhDGEpRlc7c3lN3Ni296239/hn9M0yQFi4UcR7Ku43Qk296239-ldRL2c.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/IMUPt88EWOuqsNRYBIox306319/uKSMZRIX6vlY9DkFQCnZ306319-utEth3.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/vHnLwQfJCTvQROo3GDhg289951/8vHKEZ5UmjtcdeaXFcEK289951-KxDOcX.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/68dlY133CgMzBZSdk2uh278764/dzxaUVpzzqwuSNedt73z278764-Rllg0I.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/FwwFVPsNIZ7wkbC9Vr9t281076/1bS8UQaUAYXD3jq2iXrX281076-KCLEQb.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/B6j0jR0Fru634twhBodG290579/72RGIRtqVsdBD7EdpUnV290579-fvT88n.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/fQT1VelH0nTk3kenzb9h277895/9ShGB6YzcX9rseTAvEr2277895-eDiTft.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/pqBkawftCrw6liGVsSMK291487/il4oN8qvhZ82rTgDWiQX291487-rPUv0f.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/WFHX20XiomBDye2nguRi279596/kJf25S4UxYP5M4KYOOQp279596-rDZqGt.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/W7GpDfCH8HMWZ7P3PdVD279954/8K6srTFixBrFNoN8R9Hd279954-RlF6CM.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/SVRpHP4MvqMu1NlGxCfz289736/oXpQ7DMy6h6FmcqC3acV289736-3MMdXS.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/GfbpqsUaVxGLTRwc5kgN301680/X9hvlbOJ3I6n7NwPx2FK301680-KQM0OC.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/uLs8Bkev4HkwbmQrGKuS278193/YCTMTjwqajMv4FeOOQVL278193-G132sZ.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/WmFjsKdqNiaSeu13oyLX281259/GZnkwvoqYeY2Ha3W4FZL281259-Zv6md2.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/yXWmtRVLYK6QZAjrhWmP302449/fxjlVIVNomE73AMmaRjSGSwkI2.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/CXWwMtYB8b0dNWfGEXt1282828/bWIaTkfycdLX6yIhuUH8282828-Yo7nij.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/XUgepzrbrGKfPhqA0j9T285213/XQsAA0xuCk1XSu8uEI6J27-285213-qg0JSz.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/kirMNA6VVkZOhLliunOd295683/glhcIDHkfYuaWFGcE4rr295683-wV8ct4.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/wtiR7MGF0WfrWjgEHFd9302211/HsydNRiV5HS1Siop67y4tomykU.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/6gK1ZUXXpV77iMGgLiEG296880/FwgqLAxJfSRvAUtmVW06296880-M9HTe0.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/knQkrRxQYPNftIQnNbJ9307168/hau40Lnr02XJMPrQ9ZJ2307168-FJ50kS.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/Ot0LapOpGv50OhKApNx2276045/l2fF8iGAtOZ3q89nMFrN276045-8AmcjA.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/HZOBXfsQlQHPkMew0Yy3294923/fOlW3L1Eg5pmQ9pAE9ix294923-3seQlY.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/UEneJp5HibTInc7YIHkM297028/oJsNF65DrFtx8puvi8yQZlzH0Z.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/1PK3ySEHFJEFW11LVt86294853/599jYbL3ZPUnxNx6SxbKBU4Fsu.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/QtJ5Yrt6LXGOR9dkt8b6279989/tlrEtGOsHAS17qFKBnad279989-CfcT28.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/jzMA04in91Xkjv8WBeBw278897/xxzs3FCLp3MGe6vAYyUC278897-dSx2An.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/WFHX20XiomBDye2nguRi279596/gFCLZwYNhrbYGRYzCdFd279596-F8T14O.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/mdVHE4lM6UShCXfehHAf306539/mHktnFzlIFqunG4jB1CA306539-6glLOV.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/iFsx6qUFEPkZ9uIEsBiO277009/l7YxOqel6kaIklVXkA1g277009-Q1F502.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/cgFQYrBQlWlBpg1WvTJh296289/AKjip3C7GF3QvADuKO2J296289-e1rYRX.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/GWovjb2Ob4D7naEdKSpH274373/D7Ox97K0R6nyRWVCmTTS274373-SCayZv.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/yJYmNdA422acslYOSsxE274612/g3HvBxHBDkDyJ1ff026D274612-ZOveQ1.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/BRvoZEcq0DOE4z4VW6Rt306651/7IVSQ8hKJRGqQXWqB34C306651-08vPaK.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/MkYa2GqXDD3oh0mZWXon283769/jgQAvDDtciq11dAO4PwK283769-JLMMyz.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/64RuDHn8apugAYcbfQJ9297902/4bTf3LHvEv2fBPvEwxUk2Baj0T.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/Yg7RoT5ySvKgXMjYAveh274948/8Sz61LAnT67OhEFeni09274948-5UB5eO.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/BoKCn8syoCwWgVPA4Cdl278054/v36K3pahk0PC6PSBemgn278054-gAblJA.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/qvgFimzf2TSYtXKwZOhI306214/7UyvQSxk7IVfu6lgUZzs306214-EXjZAR.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/VYtlZjV7fkneLtnSvwQF303854/5LZpkAdELPj8tC4jGEGG303854-Eietk6.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/DuIKg1pV8sZiLelKbvnO274625/SUzc0Bx4QClFsmEntPSw274625-SZByjI.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/ozga0mGvWbkWUsN4UXWw298526/JzDWAEcRmdO28py08Wnp298526-TJaoI7.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/SfKFOLtXD3TMODSEBfux279672/uab5AgMWKLjyP9BbSHf8279672-4xQVPD.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/bRsl144rQSx9H5FD3jVm306288/XONI47C2rwoSddfXPVKq306288-9tJ2hy.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/OB0Wwxsl7OU0BNA9YrMW275674/aPQelgOIbkvSH8fYnAhj275674-MoMnmE.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/WLWrR5eLFS2KYukgDwkI304854/oeK8WTcq8T8OJaY27eeU304854-ymlg4L.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/WFHX20XiomBDye2nguRi279596/29oFLJthDqrdiMB14cQP279596-PRsrPV.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/93U9ZS67M99wvy7KuTk1288314/O6sLDBjYuaSTkijwADRI288314-T5RrX1.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/UcGWDhVeO5Wrvr6JLZJt289531/oziIAaxKifjPokaJp3IQ289531-ohax8W.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/qLDWgvl2ZKQvfpixW5c7289484/f9VUFsrSX76X6XMQdMp4289484-3uN0tN.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/5B91tjhdAuM0P87TJrtC300313/NeKyijd1uIQLh8Hk7UFr300313-e3ZEVQ.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/jD5uasHegOb83cn8myvp303945/xB3rsaJKbxqykowzv8zJLR7xWP.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/RZE9g2nzrX6w9Tn0vipX293218/RIbYXRxnnKN22slHsnPL293218-xoemNh.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/sakUabvnmNKkyE1MuwRT277542/7HBRCHQWAILKxOadlNr9277542-vLJvau.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/u7P1r4CkyiYBPjD0onPm281163/Gvva6NlKmRH1FWGuPsh8281163-jrDswz.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/hCAm9iT73LCS7CxvZTcX282668/BUxcudmgCxkv2nLaQBxv282668-RiNmYk.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/PdtzA15tx3CKzT9HOan8302425/ebEFPCGm6nVQSoxoSjxX302425-YwvCjW.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/VDUkVBUtEKmw8XnSuXfv285978/64S8T0NwUsbdJQo1EDoX08-285978-v9MD2Z.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/SunSXfauaHrZq19xGS0w306293/12xExTrLM84GR2regNlw306293-AlDTHS.jpg', '', 'http://image.angelimg.spbeen.com/00000mx00000/YDIRaBXjzOkcMRYpigXM295378/PrW1rMrogULsai27N0tB295378-ntMNIx.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/a1Henr9Ucz4f1abELBP1281707/Byel4tiReYgieraiUPJe281707-BeiDSZ.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/qzypwYE9KWO5vbLTUEwP297954/UVRkOIpfFgh1ux3jA4nh297954-PmG4J3.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/Ei4CTuz0VWAZQulBuNfl276185/sbTyxbBbsXTmwHSpWQlP276185-zAbTIB.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/MkH60EFBDIkgJ9IG3msi304054/wId0Wy1B4T7N0iIhg5ovf211Rb.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/WFHX20XiomBDye2nguRi279596/KMdnhYZ1b0M0YPd1Zwts279596-Mj8L20.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/eTivmGXVhspqiek6P5yQ306463/B1EKoU0az7ffmeWBLwkD306463-E7JctO.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/e36zhoGKqDDD8BVmZerT285342/8j3Rh9eSxuncrIZR12C830-285342-hcKe8t.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/LmeHsmr4VDHgHXU0rzgz305828/i7rkas05QHXkqFjwHPo5305828-6RJZaW.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/tTNSyY88mDoA6Ur42XWC294826/p0vR5ZJLcgxExFk7JgCJ294826-B2RwIe.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/3Bj94lLIeZig9xlfdHBR279437/a6WSC2oLI1yQjYgUSDCP279437-VLYPZw.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/8D1pn7MXmZvpXcnSEwQE288135/dOurXpztR2f5KuSoJoxr288135-iGWq2z.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/1yNPULZficQTgLuPSjpg298523/bcPoUz3jTBD9z6HPe4kRYkpOFS.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/nUf5AacQwR9PDhpI2uLv282047/7lhZ6a1jh5UjQCqcufPv282047-yM3dsx.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/qb3RRdU9kAcYFFRmzOQ8277112/7h3szJfCMCFrHw3EAUpY277112-6tzog3.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/TEFasYHV7Y2c497nWCp0307950/in7TlQhcctDgZmKULcdgae58ffe082c7421e0e3fe7a158dae5a7.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/xjrut4SAB1mZL3naXwMZ296263/HEr86WSQYnm3QpTHbartdZbsG8.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/sJqKzBgKn5TcJlaEOPPR274735/mfoSiQNTleZsV0NYR19Q274735-Qu7RS7.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/pTqV7o37KqEuwYFblMjy282707/Ty4lSWhCKLC0o44RkSuH282707-L3MCNW.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/i885E7EeVQFydspKNWeS278822/vN9taxVJWvPsp4TudYXT278822-T18632.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/zJGvnpBMKn8VKyTzuh28296878/KNTkvqtXhl0VPGrp0TqA296878-eha5OZ.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/aorVzKm9Kr8umZRnC5gY285893/bqGMZkcn6DzufaNu7z2N07-285893-63jcB2.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/FtSXQ2oiYrorRFVbyM7r298690/ztV69cZKqnfa5tkUcm8o298690-Cuabt8.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/GKzYtOOvLffHKSX2QWGD302236/vBlRiSlFeBLGOrPDvdUr302236-Z3Djub.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/WFHX20XiomBDye2nguRi279596/UOh0cBkLmWJOZTCxQl8h279596-Aqj2cf.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/nmPs4fB1F3gotYU2AaZC298953/FOGWP4vRD2rhuFedYpVI298953-KN3Xkv.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/j9GHDoZvSDBRGrRlqCuO282209/yQqMtzHHAH0eI5cCzLo5282209-ldrcwp.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/WTM9Gr8sUIIpuEpHTJJ5274650/HvvjOE3oMApplowCdPXd274650-ZsP0l6.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/Tq5NGk8douE06SamdY4n295829/3ynDSqH11lCbHbeEuL8ipnX8vq.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/ePJl18HTXlbIrArmsbny276381/XOOvQgkCG2iW0lEHFqzj276381-0qFlGn.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/NJWQdkyuRtFSyl9HT3E5281547/IZEBUEAZ0sUELRTqh9yG281547-Ej4IzN.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/z9WD2Lo2SYRJW9KtJ4xc295237/JmAIJuW9um16IYJYC4IVIkCFJR.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/6n7iUSFp9o3y5HjaXOiW276937/373kf4Pa22nXq3MtS8c3276937-jAOP7w.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/KuCJWkI4NMEqw2pEdc86301904/CZ1vx3uk43Ujp6gUg8078Q4Kbf.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/SLxCn49QyvcGjM8qch6S282372/5qwwfFxYUf43L20SAgtK282372-41auks.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/m37diapAMnFIVIYt7Dq6296979/XS7MT8yxoHKFB5cGP0AO296979-cleOXa.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/xVYLc6WXIq4y0tVSBulC276024/ErxyTYKbU1CaCBaMJnhk276024-AaenFl.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/1XAwHnfFgsJw6HegnjLL306115/vPVUBsceInUZCTZ61aaM306115-mhANxG.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/KBr09LxfUhhuwMM9Hg27295953/x8WnYQMkXPQhJZ7bPwVDBYrgIN.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/HjHFoH7gi2NVa2ij8Xpi276771/TPqQjYPtCNIrTtqbvqvH276771-dbxkwr.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/KtWDk3t20ML2ADAWo84D278673/0JwAQWb6WJURvmfuv1Jg278673-YKCHWr.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/eUfk6TZ6E9T45gSRls4P278892/UmuWwNjEl6Nr6ul1MTFb278892-29OLdJ.jpg', 'http://image.angelimg.spbeen.com/00000mx00000/UdyKE6mKf12uJAYV3hBE301999/BpQclup3PLKQ1EBN4qKX301999-Tt4Yuz.jpg']\n",
      "当前标签的列表内容为： ['孙俪最新单曲《感知成长的神奇》MV...【10】']\n"
     ]
    }
   ],
   "source": [
    "url = 'http://angelimg.spbeen.com/ang/10200/1'\n",
    "headers = {\n",
    "    'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36'\n",
    "}\n",
    "all_links = [url]\n",
    "img_links = []\n",
    "all_imgs = []\n",
    "title = ''\n",
    "\n",
    "def get_next_links(url):\n",
    "    ## 给定一个链接，返回下一个链接\n",
    "    resp = requests.get(url, headers=headers)\n",
    "    ## 将拿到的响应解析一下，然后就得到了html对象\n",
    "    html = etree.HTML(resp.text)\n",
    "    imgs = html.xpath('.//div[@id=\"content\"]/a/img/@src')\n",
    "    global title\n",
    "    title = html.xpath('.//div[@class=\"article\"]/h2/text()')\n",
    "    all_img = html.xpath('.//img/@src')\n",
    "    all_imgs.extend(all_img)\n",
    "    \n",
    "    img_links.extend(imgs)\n",
    "    next_links = html.xpath('.//div[@id=\"page\"]/a/@href')\n",
    "    for i in next_links:\n",
    "        base_url = 'http://angelimg.spbeen.com'\n",
    "        next_url = base_url + i\n",
    "        if next_url not in all_links:\n",
    "            all_links.append(next_url)\n",
    "\n",
    "for link in all_links:\n",
    "    print('当前请求的链接是：', link)\n",
    "    get_next_links(link)\n",
    "    time.sleep(1)\n",
    "print('当前列表的链接内容为：', [i.split('/')[-1] for i in all_links])\n",
    "print('当前图片链接的列表内容为：',img_links)\n",
    "print('当前全部图片的列表内容为：',all_imgs)\n",
    "print('当前标签的列表内容为：',title)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "se = [1, 2, 3]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[1, 2, 3, 2, 3, 4]\n"
     ]
    }
   ],
   "source": [
    "se.extend([2, 3, 4])\n",
    "print(se)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
